﻿@{
    ViewBag.Title = "Indice Empresas";
}

<legend>Lista de Empresas</legend>

<div class="text-right"><a href="@Url.Action("Agregar", "Empresas")" class="btn btn-default btn-primary btn-xs" role="button">Agregar Nueva Empresa</a></div>


<div class="table-responsive">
    <table class="table table-hover">
        <thead>
            <tr class="success">
                <th>Nombre</th>
                <th>Codigo</th>
            </tr>

        </thead>
        <tbody>

            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.Nombre</td>
                    <td class="active">@item.Codigo</td>
                </tr>
            }
        </tbody>

    </table>

</div>
